* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --milk-white: #e5e5e5;
}

html, body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.xcprogress {
    width: 300px;
    height: 20px;
    background: var(--milk-white);
    border-radius: 4px;
    overflow: hidden;
}

.xcprogress-bar {
    width: 0;
    height: 100%;
    display: flex;
    /*百分比文字位置*/
    justify-content: flex-end;
    align-items: center;
    background: cornflowerblue;
    /*linear-gradient() CSS 函数 创建一个图像，该图像由沿直线的两种或多种颜色之间的渐进过渡组成。*/
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 55%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%);
    /*<length> – 将相应维度中的图像拉伸到指定的长度。 不允许使用负值。*/
    background-size: 40px 40px;
    transition: width 0.6s ease;
    border-radius: 4px;
    animation: xcprofress-bar-anim .2s linear infinite;
}

.xcprogress-bar {
    font-size: 13px;
    font-weight: bold;
    color: var(--milk-white);
    margin-right: 5px;
}

@keyframes xcprogress-bar-anim {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }

}

